-->
Table of Contents |
Linux is no longer a not ready for prime time operating system! Many commercial uses of Linux abound, ranging from being used to create many of the fantastic special effects for James Camerons mega hit Titanic, to being used as the OS for new network computers. As Linux evolves, one has to keep up with the changes; thats why you will find plenty of new material in this fourth edition of the popular Special Edition Using Linux.
Many chapters have been rewritten to highlight the Red Hat distributionprobably the most popular and easiest-to-install Linux distribution ever. In addition, the book contains updated coverage of such items as RPM (the Red Hat Package Manager), which offers the easiest way to install and upgrade your system; PAM, a leading security feature of most Linux distributions; and X Windows. Youll also find another CD-ROM containing a lite version of Calderas OpenLinux Base product. Finally, on the third CD-ROM, youll find a copy of Calderas StarOffice, an integrated office application that includes several office automation programs.
However, if youre just tuning in, you might want to know just what the heck Linux is.
In 1991, Linus Torvalds, then a 23-year-old college student, began a personal project to expand the Minix operating system into a full-fledged clone of the UNIX operating system that was so popular on college campuses. The project is still evolving: Linux is continuously updated and expanded by literally hundreds of people around the world.
Therefore, Linux is a unique animal in the computer (r)evolution. It isnt a commercial product backed by a huge corporation; rather, its an operating system born of frustration and built by a ragtag team of computer enthusiasts around the world. This team used Internet resources to communicate and build the operating system named Linux.
But dont think Linux is just a hobby for hackers around the worldits not! Plenty of commercial products are being written specifically for Linux. In fact, several companies are porting their UNIX-based applications, such as Corels WordPerfect, to Linux. As a matter of fact, Corel has adopted Linux for its new Network Computer and has released the resulting software to the development community.
NOTE: While it is very hard to estimate the total number of Linux users or installations in the world, a working estimate shows between 5,000,000 and 10,500,000 active Linux users worldwide. For more information see the following URL:http://www.redhat.com/redhat/linuxmarket.html
NOTE: If you dont understand what a Uniform Resource Locator (URL) is or how to use it, dont despair! This book will help you learn how to make your way around the Internet using Linux.
See URLs, p. 614
Many Fortune 500 companies use Linux for internal projects and mission-critical applications. And recently, large companies such as Netscape Communications, are embracing the concept of open solutions by releasing their own software into the development community, just as Linus Torvald and others released their software to the world.
There are also plenty of free applications and utilities for Linux. Since the inception of Linux, almost the entire GNU library of utilities has been ported to Linux, and the X Windows GUI systemso popular on UNIX-type workstationsalso has been ported. GNU (a recursive acronym for GNUs Not UNIX) is a project started by one man to make software available to anyone who wants access. The GNU General Public License in Appendix D describes the philosophy under which Linux and many other fine software packages are distributed. The accompanying CD-ROMs contain many of these packages.
This book provides you with enough information to use and enjoy Linux. The accompanying CD-ROMs contain the Red Hat 5.1 distribution and Calderas OpenLinux Lite, each of which use the 2.0.34 Linux kernel.
Probably the first order of business is to help you pronounce the word Linux. To most Americans, the pronunciation is LEN-nucks, with the short i sound. The official pronunciation is LIE-nucks, with the long i sound.
ON THE WEB:
You can hear Linus pronounce Linux in English at the following URL:ftp://ftp.linux.org/pub/kernel/SillySounds/english.au
Anyone interested in the Linux phenomenon can use this book as a guide to installing, configuring, and using Linux. Linux is often called a UNIX clone, but its actually a POSIX-compliant multiuser, multitasking operating system for Intel 386 and later processors. POSIX is an international standard for operating systems and software detailing interoperability standards. Linux doesnt require MS-DOS or Windows to operate; in fact, Linux can replace those programs on your computer.
Because Linux is still evolving, its imperative that you understand the possibility of losing existing data on your system. Do not install Linux without first backing up your system. It might be necessary to repartition your hard drive to make room for this new operating system, although its possible to install Linux on top of MS-DOS or to repartition your hard drive without losing data. If you take the proper precautions, anyone can install and enjoy Linux.
NOTE: The most current version of Linux is always available on the Internet, from sources listed in Appendix A, Sources of Information. The accompanying CD-ROMs contain the latest possible versions of Linux, but due to the rapid development of this popular operating system and the chaotic process in which its developed, its impossible to provide the latest and greatest on a CD-ROM. In fact, although all efforts are made to keep the book and CD-ROMs in synch, that also is nearly impossible. Unlike commercial software, which changes infrequently and under controlled conditions, Linux and related software are perpetually dynamic.
Because Linux is very similar to UNIX, many of the operations and procedures necessary for using Linux also apply to many UNIX systems. By learning to use Linux, you also learn how to use most UNIX systems.
UNIX has evolved over the years to become the premier operating system used by hundreds of thousands of people throughout the world. This isnt an accident. Earlier versions of UNIX were harder to manipulate than other operating systems, but despite this, UNIX managed to amass a distinguished following in academic and scientific circles. These professionals realized not only what a powerful, flexible, and manageable operating system UNIX was, but also its potential to be the best operating system ever. Their efforts have culminated in the UNIX of today, with its marvelous utilities, bundled with the newest communications capabilities and graphical user interfaces (GUIs).
The UNIX of today promises again to revolutionize the personal computer industry, and perhaps redirect the industrys growth. UNIX has evolved from a minicomputer operating system to one that crosses all hardware platforms. Theres no reason to think that this evolution will stop. UNIX may well become the standard for what most users dream ofcomplete standardization and compatibility of all computer systems eventually, regardless of size or power.
UNIX comes in several flavors from a variety of vendors, including versions for the Intel PC platforms, but most of these versions cost big bucks. Linux provides a relatively inexpensivefree if you have access to the Internetsolution to learning about UNIX-type procedures and commands, the X Windows GUI, and accessing the Internet via Linux.
If you are a Linux kernel hacker or a UNIX guru, this book may not be your cup of tea. This book is a great resource for someone wanting to know more about Linux and UNIX who has never been involved with either operating system.
However, if you know how to install Linux and maneuver around in UNIX, you may still find this book of use, particularly if you are only a UNIX user and have never had the chance to perform system administration tasks. Several sections of the book explain the finer points of system administration and how to maintain a Linux/UNIX system. Typically, a normal UNIX user is never allowed to perform these system administration tasks, but with Linux you become king of the hill and ruler of the system, free to do whatever you want to do!
Now, if you dont have a clue what MS-DOS is or what a floppy disk looks like, you might want to brush up on some computer basics before tackling Linux. Linux isnt for the faint of heartyou must have some understanding of how a computer works. If the thought of repartitioning or reformatting your hard drive sends shivers down your spine, you probably should put off learning Linux for a while until you become more comfortable with your computer system.
Most of Linux has been written across the Internet by computer hackers (not crackers, but people who truly enjoy writing software that accomplishes something). Thus, the hardware supported by Linux is the hardware owned by the various hackers.
However, many hardware manufacturers are accepting Linux as a valid market and are beginning to write drivers for their hardware. They are also providing hardware specifications to the world so that Linux developers can write software to work with the hardware. Many companies are also farming out work to Linux developers to specifically write drivers for their hardware. These companies then release the code into the community under GNU guidelines. This is a dramatic change from a few years ago when many manufactures withheld information for proprietary and competitive reasons.
Table 1 is a brief list of the supported hardware. If you dont have the correct hardware, its unlikely that youll be able to boot Linux and productively use the systemforewarned is forearmed! Appendix C, The Linux Hardware Compatibility HOWTO, provides a more in-depth listing of Linux-supported hardware.
I feel its only fair to let you know what type of systems we used to create this book. The test machine was a Pentium II 233-based system with 64MB of RAM and a Buslogic SCSI controller, a 4 gigabyte Micropolis SCSI drive, an NE2000 PCI Ethernet card, a 24x ATAPI CD-ROM, and a Matrox Mystique video card. The name server used in our network is a no-name 486dx100 system with IDE drives and 32MB of memory running Red Hat Linux. This machine is also the main sendmail server for the site. The main Web server is a Digital Equipment Alpha also running Red Hat Linux. The entire site is connected to the Internet via an ISDN line using an Ascend Pipeline 75 router.
Item | Description |
---|---|
CPU | Intel 386 and later (and compatibles), DEC Alpha, Sun Sparcs, and PowerMacs. |
Bus | ISA, EISA, VESA local bus, and PCI; the MicroChannel bus isnt fully supported yet. |
RAM | Minimum of 2MB of RAM; 4MB is recommended. |
Hard drive controller | AT standard hard drive controller; Linux supports MFM, RLL, ESDI, and IDE controllers. Linux also supports several popular SCSI drive and CD-ROM drive controllers. |
Disk space | Minimum of 20MB; 80MB is recommended. |
Monitor | Linux supports Hercules, CGA, EGA, VGA, and SVGA video cards and systems; X Windows has other requirements detailed in Chapter 21, Installing the X Windows System. |
Mouse | Any standard serial mouse (for example, Logitech, Microsoft, or Mouse Systems) or bus mouse from Microsoft, Logitech, or ATIXL. |
CD-ROM drive | Any CD-ROM drive that uses a true SCSI interface works; some proprietary CD-ROM drives such as the SoundBlaster series are also supported. CD-ROM drives known to work with Linux include NEC CDR-74, Sony CDU-45, Sony CDU-31a, Mitsumi CD-ROMs, and Texel DM-3042. |
Tape drive | Any SCSI tape drive works; other drives hosted from a floppy controller may also be supported. Now, the Colorado Jumbo 120 and 250 using the QIC 80 format are supported. |
Printer | If you can access your parallel printer from MS-DOS, you should be able to access it from Linux; some fancy features might not be accessible. |
Ethernet card | If you have access to an Ethernet network, Linux supports several standard Ethernet cards for accessing your network. Cards supported include 3Coms 3C503, 3C509, and 3C503/16; Novells NE1000 and NE2000; and Western Digitals WD8003 and WD8013. |
ON THE WEB:
The following Web site provides more information on MicroChannel bus support:http://glycerine.itsmm.uni.edu/mca/
You may prefer to read this book from cover to cover. The information progresses from simple to complex as you read through the various sections and their chapters. Because the information is separated into seven parts and four appendixes, each with its own particular emphasis, you can choose to read only those parts that appeal to your immediate needs. Dont, however, let your immediate needs deter you from eventually giving attention to each chapter. Whenever you have the time, you can find a wealth of information in them all!
Part I, Installing Linux, provides a detailed overview of the Linux system as well as instructions to get Linux up and running. It consists of six chapters:
Part II, System Administration, provides basic information on configuring and managing a typical Linux installation.
Part III, Managing the File System, provides detailed knowledge of how to be more productive with various Linux features. Everything you learn in these four chapters can be transferred easily to other UNIX-type systems:
Part IV, Working with Linux, increases your skill at working with the Linux command-line tools and utilities.
Part V, Network Administration, provides a greater understanding of the procedures and processes necessary to administer a robust Linux system.
The six chapters in Part VI, Using the Internet, provide a basic overview of the Internet.
Part VII, Setting Up a Linux Web Server, provides detailed information on setting up and running a Web server on Linux. Three chapters make up this part:
The appendixes provide supplementary information on installing and using Linux, as well as licensing information for using Linux. The book contains the following six appendixes:
This book uses several special conventions that you need to become familiar with. These conventions are listed here for your reference.
Linux is a case-sensitive operating system; that means when this book instructs you to type something at a command or shell prompt, you must type exactly what appears in the book, exactly as it is capitalized. This book uses a monospaced typeface for Linux commands to set them off from standard text. If youre instructed to type something, what you are to type appears in bold monospace text. For example, if the book gives the following instruction:
You must press the letters <c>, <a>, and <t> and then press the <Enter> key.
Keys are sometimes pressed in combination; when this is the case, the keys are presented like this: <Ctrl-h>. This example implies that you must press and hold the <Ctrl> key, press the <h> key, and then release both keys.
NOTE: This book uses a convention for key names that may vary from what you are accustomed to. To avoid confusion in the case-sensitive UNIX environment, this book uses lowercase letters to refer to keys when uppercase letters may be the norm. For example, this book uses the form <Ctrl-c> instead of the form <Ctrl-C> (the latter form may make some readers wonder whether they should press <Ctrl> and <Shift> and <c>).
Some example listings show a portion of the screen after you type a specific command. These listings show the command prompt or shell promptusually a dollar sign ($)followed by what you type in bold. Dont type the dollar sign when you follow the example on your own system. Consider this example:
$ lp report.txt & 3146 $
You should type only what appears in bold on the first line (that is, type lp report.txt & and then press <Enter>). The rest of the listing shows Linuxs response to the command.
When discussing the syntax of a Linux command, this book uses some special formatting to distinguish between the required portions and the variable portions. Consider the following example:
lp filename
In this syntax, the filename portion of the command is a variable; that is, it changes depending on what file you actually want the lp command to work with. The lp is required because its the actual command name. Variable information is presented in italic; information that must be typed exactly is not in italic.
In some cases, command information is optionalthat is, its not required for the command to work. Square brackets ([]) enclose optional parts of the command syntax. Consider the following example:
lp filename [device1] [abc]
Here, lp is the command name and is neither optional nor variable. The device1 parameter is both variable and optional (it is in italic and enclosed in square brackets); this means that you can type any device name in place of device1 (without the brackets), or you can type nothing at all for that parameter. The abc parameter is optional (you dont have to use it if you dont want to), but its not variable; if you use it, you must type it exactly as it appears in the bookagain, without the brackets.
Tips, notes, and cautions appear throughout the book in special formats to make the information they contain easy to locate. Longer discussions not integral to the flow of the chapter are set aside as sidebars, with their own heading.
The book also contains many cross-references to appropriate topics throughout the book. A typical cross-reference appears as follows:
See Using X Windows, p. xxx
Table of Contents |